package com.feign.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "chao-product",path = "/product")
public interface MsgTestFeignService {

    @ResponseBody
    @RequestMapping(method = RequestMethod.GET, value = "/getAllProduct")
    String getAllProduct(@RequestParam("s") Long s);
}
